package com.swanclouds.api.systems;

import com.swanclouds.common.RestService;
import com.swanclouds.model.common.redfish.CollectionResource;
import com.swanclouds.model.systems.PCIeFunctions;
import com.swanclouds.redfish.systems.domain.PCIeFunctionsModel;

import java.util.List;

/**
 *
 *
 * @author 张立强 
 */
public interface PCIeFunctionService extends RestService {

   /**
    * 查询服务器指定PCIe设备归属资源集合信息
    * @param  pciedevicesId PCIe设备Id
    * @return  CollectionResource
    **/
    CollectionResource get(String pciedevicesId);

    /**
     * 查询服务器指定PCIe设备类型、资源归属信息.
     * @param  pciedevicesId PCIe设备Id
     * @param  functionsId  PCIe卡功能资源Id
     * @return  com.swanclouds.model.systems.PCIeFunctions
     **/
    PCIeFunctions getFunctionsId(String pciedevicesId,String functionsId);

    List<PCIeFunctionsModel> list();

}
